package com.dormitory.management.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dormitory.management.system.entity.User;
import com.dormitory.management.system.resp.UserResp;
import com.dormitory.management.system.api.UserInfoApi;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    UserInfoApi queryUserInfo(@Param(Constants.WRAPPER) QueryWrapper<UserInfoApi> queryWrapper);

    IPage<UserResp> getUserPage(IPage<UserResp> page, @Param(Constants.WRAPPER) Wrapper<UserResp> Wrapper);
}
